package com.dkm.ec.stock.persistence.entity;
import java.util.Date;

import org.apache.commons.lang.builder.ToStringBuilder;

import com.dkm.base.api.annotion.IField;
import com.dkm.base.api.annotion.ITable;
import com.dkm.base.db.persistence.entity.AbstractPo;

/**
 * 对象功能:库存表 Tbl对象
 * 开发公司:dkm.com
 * 开发人员:ZHH
 * 创建时间:2017-05-22 18:48:08
 */
 @ITable(name="stock",code="t_stock")
public class StockTbl extends AbstractPo<String>{
	@IField(name="id",column="id_")
	protected String  id; 		/*ID*/
	@IField(name="locationId",column="location_id_")
	protected String  locationId; 		/*库位*/
	@IField(name="storeId",column="store_id_")
	protected String  storeId; 		/*渠道ID*/
	@IField(name="skuId",column="sku_id_")
	protected String  skuId; 		/*产品SKUID*/
	@IField(name="type",column="type_")
	protected String  type; 		/*库存类型:PRESALE=预售,NOMARL=普通*/
	@IField(name="qty",column="qty_")
	protected Integer  qty; 		/*总库存数*/
	@IField(name="qtyReserved",column="qty_reserved_")
	protected Integer  qtyReserved; 		/*冻结库存数*/
	@IField(name="createTime",column="create_time_")
	protected java.util.Date  createTime; 		/*创建时间*/
	@IField(name="updateTime",column="update_time_")
	protected java.util.Date  updateTime; 		/*更新时间*/
	@IField(name="mode",column="MODE_")
	protected String  mode; 		/*MODE_*/
	
	
	public void setId(String id) 
	{
		this.id = id;
	}
	/**
	 * 返回 ID
	 * @return
	 */
	public String getId() 
	{
		return this.id;
	}
	public void setLocationId(String locationId) 
	{
		this.locationId = locationId;
	}
	/**
	 * 返回 库位
	 * @return
	 */
	public String getLocationId() 
	{
		return this.locationId;
	}
	public void setStoreId(String storeId) 
	{
		this.storeId = storeId;
	}
	/**
	 * 返回 渠道ID
	 * @return
	 */
	public String getStoreId() 
	{
		return this.storeId;
	}
	public void setSkuId(String skuId) 
	{
		this.skuId = skuId;
	}
	/**
	 * 返回 产品SKUID
	 * @return
	 */
	public String getSkuId() 
	{
		return this.skuId;
	}
	public void setType(String type) 
	{
		this.type = type;
	}
	/**
	 * 返回 库存类型:PRESALE=预售,NOMARL=普通
	 * @return
	 */
	public String getType() 
	{
		return this.type;
	}
	public void setQty(Integer qty) 
	{
		this.qty = qty;
	}
	/**
	 * 返回 总库存数
	 * @return
	 */
	public Integer getQty() 
	{
		return this.qty;
	}
	public void setQtyReserved(Integer qtyReserved) 
	{
		this.qtyReserved = qtyReserved;
	}
	/**
	 * 返回 冻结库存数
	 * @return
	 */
	public Integer getQtyReserved() 
	{
		return this.qtyReserved;
	}
	public void setCreateTime(java.util.Date createTime) 
	{
		this.createTime = createTime;
	}
	/**
	 * 返回 创建时间
	 * @return
	 */
	public java.util.Date getCreateTime() 
	{
		return this.createTime;
	}
	public void setUpdateTime(java.util.Date updateTime) 
	{
		this.updateTime = updateTime;
	}
	/**
	 * 返回 更新时间
	 * @return
	 */
	public java.util.Date getUpdateTime() 
	{
		return this.updateTime;
	}
	public void setMode(String mode) 
	{
		this.mode = mode;
	}
	/**
	 * 返回 MODE_
	 * @return
	 */
	public String getMode() 
	{
		return this.mode;
	}
	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() 
	{
		return new ToStringBuilder(this)
		.append("id", this.id) 
		.append("locationId", this.locationId) 
		.append("storeId", this.storeId) 
		.append("skuId", this.skuId) 
		.append("type", this.type) 
		.append("qty", this.qty) 
		.append("qtyReserved", this.qtyReserved) 
		.append("createTime", this.createTime) 
		.append("updateTime", this.updateTime) 
		.append("mode", this.mode) 
		.toString();
	}
}